﻿@model ScmCostledgerViewModel
@{
    Layout = null;
    ViewBag.Title = "费用台账奖励/罚款-添加";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("CostLedgerAddData", "ScmCostLedger", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
<div class="pageFormContent sortDrag" layouth="58">
    <table class="tab01 tabNo" width="100%;">
        <tr>
            <td class="td1" style="width: 25%;">
                选择单位：
            </td>
            <td>
               
                @Html.TextBoxFor(m => m.TheScmCostledgerInfo.Cl_ConstructionName, new Dictionary<string, object> { { "class", "data-val-required input02" }, { "readonly", "readonly" } })
                @Html.ValidationMessageFor(m => m.TheScmCostledgerInfo.Cl_ConstructionName)
                <a class="btnLook" href="@Url.Action("UnitList", "ProjectSegment", new { uId = "TheScmCostledgerInfo_Cl_ConstructionID", uName = "TheScmCostledgerInfo_Cl_ConstructionName", uSection = "TheScmCostledgerInfo_Cl_SectionName" })" lookupgroup="TheScmCostledgerInfo" title="选择单位">
                    查找带回</a>
            </td>
        </tr>
        <tr>
            <td class="td1">
                标段：
            </td>
            <td>
                @Html.TextBoxFor(model => model.TheScmCostledgerInfo.Cl_SectionName, new { @class = "input02" })
            </td>
        </tr>
        <tr>
            <td class="td1">
                费用类型：
            </td>
            <td>
                @Html.DropDownListFor(model => model.TheScmCostledgerInfo.Cl_Type, ViewBag.list as IEnumerable<SelectListItem>)
            </td>
        </tr>
        <tr>
            <td class="td1">
                年份：
            </td>
            <td>
                @Html.TextBoxFor(model => model.TheScmCostledgerInfo.Cl_YearMonth,
                               new { @id = "yearmonth", @class = "date input02", @readonly = "readonly", format = "yyyy-MM", Value = DateTime.Now.ToString("yyyy-MM") })
            </td>
        </tr>
        <tr>
            <td class="td1">
                金额：
            </td>
            <td>
                @Html.TextBoxFor(model => model.TheScmCostledgerInfo.Cl_Amount, new Dictionary<string, object> { { "class", "input02" } })
                @Html.ValidationMessageFor(model => model.TheScmCostledgerInfo.Cl_Amount)
            </td>
        </tr>
        <tr>
            <td class="td1">
                备注：
            </td>
            <td>
                @Html.TextBoxFor(model => model.TheScmCostledgerInfo.Cl_Remark, new { @size = "95", @class = "input02" })
            </td>
        </tr>
    </table>
</div>
<div class="formBar">
    <ul>
        <li>
            <button type="submit" class="btn btn-sm">
                保存</button>
        </li>
        <li>
            <button type="button" class="close btn btn-default btn-sm">
                取消</button>
        </li>
    </ul>
</div>
}
